package com.cq.mapper;

import com.cq.pojo.Room;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 悠久的苍穹
 * @Date: 2021/1/27 17:05
 * @Description: 房间数据层
 * @Version: 1.0
 */
@Mapper
@Repository
public interface RoomMapper {
    int getCount();

    List<Room> findAllRoom(@Param("page") int page, @Param("limit") int limit);

    Room findRoomById(@Param("id") String id);

    void deleteRoomById(@Param("id") int id);

    int getWebCount();

    List<Room> findAllWebRoom(@Param("page") int page, @Param("limit") int limit);
}
